from os import name
from django.db import models
from datetime import datetime

# Create your models here.
class Team(models.Model):
    name_t = models.CharField(max_length=100)
    id_t = models.CharField(max_length=100)
    result = models.TextField(blank=True)
    east = models.BooleanField(default=True)
    score = models.CharField(max_length=100)
    percentage_t = models.CharField(max_length=100)
    shoot_t = models.CharField(max_length=100)
    hit_t = models.CharField(max_length=100)
    threepercentage_t = models.CharField(max_length=100)
    threeshoot_t = models.CharField(max_length=100)
    threehit_t = models.CharField(max_length=100)
    rebound_t = models.CharField(max_length=100)
    assists_t = models.CharField(max_length=100)
    turnover_t = models.CharField(max_length=100)
    foul_t = models.CharField(max_length=100)
    photo_t = models.ImageField(upload_to='photos/%Y/%m/%d/')


    def __str__(self):
        return self.name_t